package product;

public class Seat {
    private int row; // 行号
    private int col; // 列号
    private boolean isSold; // 是否售出

    public Seat(int row, int col) {
        this.row = row;
        this.col = col;
        this.isSold = false;
    }

    // Getter和Setter
    public int getRow() { return row; }
    public int getCol() { return col; }
    public boolean isSold() { return isSold; }
    public void setSold(boolean sold) { isSold = sold; }

    // 显示座位状态（O=未售，X=已售）
    public String getStatus() {
        return isSold ? "X" : "O";
    }
}